<?php

namespace app\admin\model;

use think\Model;
use think\Db;
class Models extends Model
{
    protected static function init()
    {
        self::afterDelete(function ($data) {
            $TableName=config('database.prefix').$data['table_name'];
            $sql="drop table {$TableName}";
    	    Db::execute($sql);
        });
    }
}
